<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="bootstrap.css">
    <link rel="stylesheet" href="bootstrap-theme.min.css">
    <link rel="stylesheet" href="bootstrap-fileinput-master-update/css/fileinput.css">
    <link rel="stylesheet" href="bootstrap-fileinput-master-update/themes/explorer/theme.css">



    <title>Document</title>
</head>
<body>
<form action="http://192.168.0.144/erp/DUser/importXls">
    <input type="file" id="file" name="areaFile" enctype="multipart/form-data"/>
    <input id="uploadbutton" type="button" value="Upload"/>
</form>


<script type="text/javascript" src="jquery-2.0.3.js"></script>
<script type="text/javascript" src="jquery.ocupload-1.1.2.js"></script>
<!--<script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>-->
<script type="text/javascript">
    $(function () {
        $('#uploadbutton').click(function () {
        var dataVal = $('#file').val();
            $.ajax({
                url:'http://192.168.0.111/erp/DUser/importXls',
                type:'post',
                data:dataVal,
                success:function (data) {
                    console.log(data)
                },
                error:function(err){
                    console.log(err)
                }
            })

        })
    })
</script>
<!--<script type="text/javascript" src="bootstrap-fileinput-master-update/js/plugins/sortable.js"></script>-->
<!--<script type="text/javascript" src="bootstrap-fileinput-master-update/js/fileinput.js"></script>-->
<!--<script type="text/javascript" src="bootstrap-fileinput-master-update/js/locales/zh.js"></script>-->
<!--&lt;!&ndash;<script type="text/javascript" src="bootstrap-fileinput-master-update/js/locales/zh.js"></script>&ndash;&gt;-->
<!--<script type="text/javascript" src="bootstrap-fileinput-master-update/themes/explorer/theme.js"></script>-->
<!--<script src="bootstrap.js"></script>-->

<!--<script type="text/javascript">-->

    <!--$(document).ready(function () {-->
        <!--$("#uploadbutton").click(function () {-->
            <!--var filename = $("#file").val();-->
            <!--//alert(filename)-->
            <!--$.ajax({-->
                <!--type: "POST",-->
                <!--url: "http://192.168.0.144/erp/DUser/importXls",-->
                <!--enctype: 'multipart/form-data',-->
                <!--data: {-->
                    <!--file: filename-->
                <!--},-->
                <!--success: function () {-->
                    <!--alert("Data Uploaded: ");-->
                <!--}-->
            <!--});-->
        <!--});-->
    <!--});-->
<!--</script>-->

</body>
</html>